package com.example.reggie.common;

/**
 *
 */
public class MyBaseContext {
     private static ThreadLocal<Long> threadLocal = new ThreadLocal<>();

  public static  void setEmpIdByThread(Long id)
  {
      threadLocal.set(id);
  }

  public  static Long  getEmpIdByThread()
  {
      return threadLocal.get();
  }


    public static Long getCurrentId() {
      return  getEmpIdByThread();
    }
}
